<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div  id="content">
            <section class="content-header">
                <h1>
                    <i class="fa fa-envelope"></i>
                    <strong>信息分配</strong>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
                    <li>信息管理</li>
                    <li class="active">信息分配</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="box box-info">
                            <div class="box-header with-border">
                                <i class="fa fa-th-list"></i>
                                <h4 class="box-title">销售信息查询</h4>
                            </div>
                            <div class="box-body">
                                <div class="form-inline">
                                	<div class="input-group">
										<input type="text" class="form-control" id="keyword"  placeholder="Search..." />
										<span class="input-group-btn">
											<button type="button" class="btn btn-info searchBtn">查询</button>
                                            <button type="button" class="btn btn-info cancelBtn">撤消</button>
										</span>
									</div>
									<div class="input-group">
									<form action="" method="get">
											<span class="form-control" style="margin-left:20px">处理状态</span>
											<span class="form-control" style="margin-left:20px">
												<label><input name="isReceived" type="radio" value="" />全部 </label> 
												<label><input name="isReceived" type="radio" value="0" checked="checked"/>未处理 </label> 
												<label><input name="isReceived" type="radio" value="1" />已处理</label> 
											</span>
											<span class="form-control" style="margin-left:20px">信息类型</span>
											<span class="form-control" style="margin-left:20px">
												<label><input name="targetType" type="radio" value="2" checked="checked"/>传递信息</label> 
												<label><input name="targetType" type="radio" value="0" />本部信息</label> 
												<label><input name="targetType" type="radio" value="1" />协作信息</label> 
												<label><input name="targetType" type="radio" value="4" />全部 </label> 
											</span>
									</form>
									</div>
									<button type="button" class="btn btn-info pull-right reback-btn">退回</button>
									<button type="button" class="btn btn-info pull-right detail-btn">查看详情</button>
									<button type="button" class="btn btn-info pull-right dis-btn">分配员工</button>
								</div>
                            </div>
                            <div class="box box-body" style="width:100%;overflow-x:scroll;">
                                <table id="managerDeliveryTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="3500px">
                                    <thead>
                                        <tr>
                                            <th width="2%">序号</th>
                                            <th width="1%"><input type="checkbox" id="checkAll"/></th>
                							<th width="3%">信息状态</th>
                							<th width="7%">信息名称</th>
                							<th width="3%">信息优先级</th>
                							<th width="3%">信息来源</th>
               								<th width="5%">信息来源单位</th>
               								<th width="3%">所属行业</th>
               								<th width="3%">创建人</th>
               								<th width="4%">创建人片区</th>
                							<th width="5%">提供信息人资料</th>
                							<th width="11%">项目动态</th>
                							<th width="14%">设备情况</th>
                							<th width="4%">信息提供方影响力</th>
                							<th width="5%">预计订货量</th>
               								<th width="5%">订货单位</th>
                							<th width="4%">订货联系人</th>
                							<th width="5%">联系方式</th>
                							<th width="5%">订货单位地址</th>
                							
                							<th width="7%">创建时间</th>
                							
                                        </tr>
                                    </thead>
                                    <tbody>
                                	
               						</tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <!--退回机会弹窗-->
    <div class="modal" id="rejectChanceModal">
        <div class="modal-dialog" role="dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>退回信息原因填写</strong></h4>
                    </div>
					<div class="box-body">
						<input type="hidden" name="chanceDeliveryId" id="chanceDeliveryId"></input>
                        <label class="col-sm-2 control-label">原因</label>
                                <div class="col-sm-10">
                                    <div class="col-md-12">
                                        <textarea class="form-control" rows="3" name="rejectReason" id="rejectReason" datatype="*,*1-100" style="resize: none;"></textarea>
                                    </div>
                                </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        <button type="button" class="btn btn-primary rejectBtn" >保存</button>
                    </div>
                </div>
        </div>
    </div>
    <!--分配员工弹窗-->
    <div class="modal" id="distributeModal">
        <div class="modal-dialog" role="dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>请选择员工</strong></h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-horizontal">
                    <div class="form-group">
                                <input type="hidden" name="userId" id="userId" th:value="${userId}"></input>
                                <input type="hidden" name="areaId" id="areaId" th:value="${areaId}"></input>
                                <input type="hidden" name="chanceId" id="chanceId"></input>
                                <input type="hidden" name="deliveryId" id="deliveryId"></input>
                                <input type="hidden" name="chanceName" id="chanceName"></input>
                                <label class="col-sm-2 control-label">员工姓名</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <select class="form-control js-example-basic-single js-states" style="width:100%" type="text" name="mainStaff"  id="mainStaff">
                                        <option id="0"></option>
                                        </select>
                                    </div>
                                </div>
                                    <div class="col-md-2">
                                        <button type="button" class="btn btn-primary distributeBtn" >分配</button>
                                    </div>
                            </div>
                            <div class="form-group">
                            <label class="col-sm-2 control-label">已分配员工</label>
                             <div class="col-sm-4">
                                  <div class="col-md-11">
                                  </div>
                                </div>
                                <label class="col-sm-2 control-label"></label>
                             <div class="col-sm-4">
                                  <div class="col-md-11">
                                  <button type="button" class="btn btn-primary pull-right deleteDistribute" >删除</button>
                                  </div>
                                </div>
                            </div>
                            <table id="managerDeliveryModuleTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="100%">
                                    <thead>
                                        <tr>
                                            <th width="10"><input type="checkbox" id="checkUser"/></th>
                                            <th width="20">接收状态</th>
                                            <th width="25">姓名</th>
                							<th width="20">上级部门</th>
                							<th width="25">片区名称</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                	
               						</tbody>
                                </table>
					</div>           
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        
                    </div>
        </div>
       </div>
       </div>
    <script th:src="@{/chanceDelivery/managerDelivery.js}"></script>

    </div>
</body>
</html>